<?php echo $this->render('common/header.phtml'); ?>
<?php $this->headLink()->appendStylesheet($this->dirCss.'/detail.css');?>
<?php
	$this->title = $this->translate("Taxonomy Detail");
	$this->headTitle ( $this->title );
?>

<!-- start content-outer ........................................................................................................................START -->
<div id="content-outer">

	<!-- start navigation -->
		<?php echo $this->render('common/navigation.phtml');?>
	<!-- END navigation -->

	<!-- start content -->
	<div id="content">

		<!--  start page-heading -->
		<div id="page-heading">
			<h1><?php echo $this->language->l('Category Detail');?></h1>
		</div>
		<!-- end page-heading -->
		
		<div id="content-border">

			<div id="content-add-inner">
				<?php if(!empty($this->categoryInfo)){?>
					<fieldset id="taxonomyInfo">
						<legend><?php echo $this->translate('Category Info'); ?></legend>
						
						<label class="add-label">Id: </label>
						<label class="add-inp"><?php echo $this->categoryInfo['id']; ?></label>
						<div class="clear_row"></div>
						
						<label class="add-label">Name</label>
						<div class="add-inp">
								<label><?php echo $this->categoryInfo['name'][$this->defaultLanguage]; ?></label>
						</div>
						
						
					</fieldset>
				
					<fieldset id="taxonomyChildren">
						<legend><?php echo $this->translate('Category List'); ?></legend>
						<div class="header">
							<div class="category-ordinal"><?php echo $this->translate('ordinal'); ?></div>
							<div class="category-id"><?php echo $this->translate('Page Id')?></div>
							<div class="category-name"><?php echo $this->translate('Title')?></div>
						</div>
						
						<?php if(@!empty($this->pageList)) {?>
							<div class="body">
							<?php foreach($this->pageList as $key=>$onePage){?>
								<div class="onecategory">
									<span class="category-ordinal"><?php echo ($key + 1); ?></span>
									<span class="category-id"><?php echo $onePage['page_id']; ?></span>
									<span class="category-name"><?php echo $onePage['name'] ?></span>
								</div>
							<?php }//END foreach?>
							</div>
						<?php }//END if?>
					</fieldset>
					
				<?php }else{?>
					<?php echo "There's no page inside this category"; ?>
				<?php }?>
			</div><!--  END #content-add-inner -->

		</div>
		<!-- END #content-border -->

	</div>
	<!--  end content -->

	<div class="clear">&nbsp;</div>
</div>
<!--  end content-outer........................................................END -->
<?php echo $this->render('common/footer.phtml'); ?>